package LC23;

public class LC2278 {
    public int percentageLetter(String s, char letter) {
        int length = s.length();
        int num = 0;
        for (int i = 0; i < length; i++) {
            if (letter == s.charAt(i)) {
                num++;
            }
        }
        return num * 100 / length;
    }
}
